package com.msda.pojo.entity.order;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.msda.pojo.entity.requirement.Requirement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "orders",autoResultMap = true)
public class Order {

//    id: string;
//    reservation: Reservation
//    customerId: string;
//    amount: number;			// 订单金额
//    payment_status: 'unpaid' | 'paid' | 'expired';	// 付款状态: 未支付 | 支付 | 过期
//    paymentTime?: number;	// 付款时间
//    createdTime: number;

    @TableId
    private String id;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private Requirement requirement;
    private String customerId;
    private String roomId;
    private Double amount;
    private String paymentStatus;
    private Long paymentTime;
    private Long createdTime;

}
